<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class QuestionComment</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> QuestionComment</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Class QuestionComment.php</p>
<p class="description"><p>Class responsible for storing the comments to the questions of question discussion stage</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jose Oliveira &lt;<a href="mailto:jafo@ua.pt">jafo@ua.pt</a>&gt; 2012</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_serverResources---includes---classes---QuestionComment.php.html">/serverResources/includes/classes/QuestionComment.php</a> (line <span class="field">11</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																								<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">QuestionComment</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$comment</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$questionSource</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$questionID</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$comment,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionSource,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID,</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#commentHaveReply" title="details" class="method-name">commentHaveReply</a>
											(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$qCommentID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getComments" title="details" class="method-name">getComments</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionSource</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#getNumOfComments" title="details" class="method-name">getNumOfComments</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionSource</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#storeComment" title="details" class="method-name">storeComment</a>
										()
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">29</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">QuestionComment</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$comment</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$questionSource</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$questionID</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$comment,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionSource,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID,</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID,</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$comment,</span><span class="var-description">: the comment to a given matter</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionSource,</span><span class="var-description">: indicates the table where is stored original question (ImpQuest or edImpQuest)</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionID,</span><span class="var-description">: indicates the questionID on the table</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID,</span><span class="var-description">: the userID who wrote the comment</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID,</span><span class="var-description">: the projectID where this question were written</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$comment</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$questionSource</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$questionID</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$userID</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcommentHaveReply" id="commentHaveReply"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">commentHaveReply</span> (line <span class="line-number">209</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that checks if a question comment have some response</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			commentHaveReply
		</span>
					(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$qCommentID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">unknown_type</span>
				<span class="var-name">$qCommentID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetComments" id="getComments"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getComments</span> (line <span class="line-number">84</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that gets all the comments made to a Question</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getComments
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionSource</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionSource</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNumOfComments" id="getNumOfComments"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNumOfComments</span> (line <span class="line-number">135</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the number of comments made to a question</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getNumOfComments
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionSource</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$questionID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionSource</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$questionID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodstoreComment" id="storeComment"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">storeComment</span> (line <span class="line-number">46</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method to store a new comment made to a question</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			storeComment
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 22 Feb 2013 05:34:00 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>